package roy.abc.study.WebServices.JavaWSUpAndRunning.ch01.team;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService
public class Teams {
	private TeamUtility util;
	
	public Teams(){
		util = new TeamUtility();
		util.makeTestTeamMembers();
	}
	
	@WebMethod
	public Team getTeam(String name) {
		return util.getTeam(name);
	}
	
	@WebMethod
	public List<Team> getTeams(){
		return util.getAllTeams();
	}
}
